<?php
session_start(); //to ensure you are using same session
session_destroy(); //destroy the session
header('Location: ../index.php')
?>

<script type="text/javascript">
    window.location.href = "../index.php";
</script>
